import request from '@/utils/request'

// 查询课程成绩列表
export function listScores(query) {
  return request({
    url: '/system/scores/list',
    method: 'get',
    params: query
  })
}

// 查询课程成绩详细
export function getScores(id) {
  return request({
    url: '/system/scores/' + id,
    method: 'get'
  })
}

// 新增课程成绩
export function addScores(data) {
  return request({
    url: '/system/scores',
    method: 'post',
    data: data
  })
}

// 修改课程成绩
export function updateScores(data) {
  return request({
    url: '/system/scores',
    method: 'put',
    data: data
  })
}

// 删除课程成绩
export function delScores(id) {
  return request({
    url: '/system/scores/' + id,
    method: 'delete'
  })
}
